package o;

import android.app.Activity;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse.ShareInfo;
import com.huawei.appgallery.share.api.ShareBean;
import o.ewm.n;

public class dkm implements cdi {
    public boolean ˊ(Activity activity, ShareInfo shareInfo) {
        ShareBean shareBean = new ShareBean();
        shareBean.ॱ(shareInfo.ˏ());
        shareBean.ˎ(shareInfo.ˋ());
        shareBean.ˋ(shareInfo.ˎ());
        shareBean.ˊ(activity.getResources().getIdentifier(activity.getString(n.ʼﾟ), "drawable", activity.getPackageName()));
        String ˊ = shareInfo.ˊ();
        if (!ˊ.contains("&V=")) {
            if (ˊ.contains("?")) {
                ˊ = ˊ + "&V=90001000";
            } else {
                ˊ = ˊ + "?&V=90001000";
            }
        }
        shareBean.ˊ(ˊ);
        if (!eqp.ᐝ()) {
            shareBean.ˏ(2);
        }
        ((cww) fho.ˏ().ˋ("Share").ॱ(cww.class)).ˎ(activity, shareBean);
        return false;
    }
}
